package com.huazhi.wzsnw.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Dossier {
    private String tid;

    private String name;

    private String keyword;

    private String check;

    private String insertuser;

    private Date inserttime;

    private String modifyuser;

    private Date modifytime;

    private String state;

    private String files;

    private Date starttime;

    private Date endtime;

    private String inserttimestring;

    private String modifytimestring;

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid == null ? null : tid.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword == null ? null : keyword.trim();
    }

    public String getCheck() {
        return check;
    }

    public void setCheck(String check) {
        this.check = check == null ? null : check.trim();
    }

    public String getInsertuser() {
        return insertuser;
    }

    public void setInsertuser(String insertuser) {
        this.insertuser = insertuser == null ? null : insertuser.trim();
    }

    public Date getInserttime() {
        return inserttime;
    }

    public void setInserttime(Date inserttime) {
        this.inserttime = inserttime;
    }

    public String getModifyuser() {
        return modifyuser;
    }

    public void setModifyuser(String modifyuser) {
        this.modifyuser = modifyuser == null ? null : modifyuser.trim();
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    public String getFiles() {
        return files;
    }

    public void setFiles(String files) {
        this.files = files == null ? null : files.trim();
    }

    public Date getStarttime() { return starttime; }

    public void setStarttime(Date starttime) { this.starttime = starttime; }

    public Date getEndtime() { return endtime; }

    public void setEndtime(Date endtime) { this.endtime = endtime; }

    public String getInserttimestring() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if(inserttime != null && inserttimestring == null){
            return dateFormat.format(inserttime);
        }
        return inserttimestring;
    }

    public void setInserttimestring(String inserttimestring) {
        this.inserttimestring = inserttimestring;
    }

    public String getModifytimestring() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if(modifytime != null && modifytimestring == null){
            return dateFormat.format(modifytime);
        }
        return modifytimestring;
    }

    public void setModifytimestring(String modifytimestring) {
        this.modifytimestring = modifytimestring;
    }
}